package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.app.dto.CarUserManDto;
import com.yami.shop.bean.model.CarUser;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CarUserMapper
 *
 * @Author Administrator
 * @Date 2025/4/14 13:18
 */
public interface CarUserMapper extends BaseMapper<CarUser> {
    CarUser getUserByOpenId(@Param("openId") String openId);

    CarUser getUserByRoomId(Integer roomId);

    List<CarUserManDto> userList(@Param("adapter") PageAdapter pageAdapter);

    long countUserList();
}
